<#--
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <style type="text/css">
    * {
      margin: 0px;
    }

    #content {
      margin: 150px auto;
      width: 100%;
      height: 460px;
      border: 1px transparent solid;
      background-color: #21D4FD;
      background-image: linear-gradient(243deg, #21D4FD 0%, #B721FF 100%);
      background-image: -webkit-linear-gradient(243deg, #21D4FD 0%, #B721FF 100%);
      background-image: -moz-linear-gradient(243deg, #21D4FD 0%, #B721FF 100%);
      background-image: -o-linear-gradient(243deg, #21D4FD 0%, #B721FF 100%);
    }

    #box {
      margin: 50px auto;
      width: 30%;
      height: 360px;
      background-color: #fff;
      text-align: center;
      border-radius: 15px;
      border: 2px #fff solid;
      box-shadow: 10px 10px 5px #000000;
    }

    .title {
      line-height: 58px;
      margin-top: 20px;
      font-size: 36px;
      color: #000;
      height: 58px;
    }

    #box:hover {
      border: 2px #fff solid;
    }

    .input {
      margin-top: 20px;
    }

    input {
      margin-top: 5px;
      outline-style: none;
      border: 1px solid #ccc;
      border-radius: 3px;
      padding: 13px 14px;
      width: 70%;
      font-size: 14px;
      font-weight: 700;
      font-family: "Microsoft soft";
    }

    button {
      margin-top: 20px;
      border: none;
      color: #000;
      padding: 15px 32px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      border-radius: 15px;
      background-color: #CCCCCC;
    }
    button:hover{
      background-color: #B721FF;
      color: #fff;
    }
  </style>
</head>
<body>
<div id="content">
  <div id="box">
    <div class="title">Login</div>
    <div class="input">
      <input type="text" id="username" value="" placeholder="用户名" />
      <br>
      <input type="password" id="password" placeholder="密码" />
      <br>
      <button type="button" onclick="initLogin()">登录</button>
    </div>
    <div style="margin-top: 20px;">
      <img src="${request.contextPath}/front/themes/img/icon/apy-4.png" onclick="loginAuth('zfb')"/>
      <img src="${request.contextPath}/front/themes/img/icon/apy-5.png" onclick="loginAuth('weixin')"/>
    </div>
  </div>
</div>

</body>
<script src="${request.contextPath}/front/themes/js/jquery.min.js?v=${staticVersion}"></script>
<script src="${request.contextPath}/common/common.js?v=${staticVersion}"></script>
<script type="text/javascript">
  function getContextPath(){
    return "${request.contextPath}";
  }
  function initLogin() {
    var loginName = document.getElementById("username").value;
    var password = document.getElementById("password").value;
    var url = '${request.contextPath}/user/initlogin.json';
    var data = {
      loginName: loginName,
      password: password
    };
    var result = ajaxPost(url,data);
    if(null!=result && result.success){
      top.location.href = getContextPath()+ '/index';
    }
  }
  function loginAuth(theType) {
    top.location.href = getContextPath()+ '/wechat/index';
  }
</script>
</html>-->

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
</head>
<body>
<script src="${request.contextPath}/static/front/themes/js/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function () {
    top.location.href = '${request.contextPath}/wechat/index';
  })
</script>
</body>
</html>


